setError

Sets the error state.

Parameters

error

The error to set